// import Mock from 'mockjs'
const COL = [
  {prop: 'id', label: '接警编号'},
  {prop: 'type', label: '警情类别'},
  {prop: 'time', label: '报警时间'},
  {prop: 'status', label: '警情状态'},
  {prop: 'depName', label: '管辖所'},
  {prop: 'address', label: '警情地点'},
  {prop: 'desc', label: '警情描述'}
]
export function getCaseInfoMock(Mock, url, query) {
  const Random = Mock.Random
  return Mock.mock({
    code: 0,
    msg: '',
    data: {
      page: `${query.pageIndex}`,
      limit: `${query.pageSize}`,
      total: 50,
      [`list|${query.pageSize}`]: [
        {
          'id|3-6': '@cword',
          'type|2-4': '@cword',
          'time': Random.date('yyyy-mm-dd'),
          'status|2-3': '@cword',
          'depName|5-15': '@cword',
          'address|5-15': '@cword',
          'desc|10-20': '@cword'
        }
      ],
      colData: COL
      // colData: PERSONS.colData.map((item) => {
      //   return {
      //     ...item,
      //     filterable: true,
      //     necessary: true,
      //     type: 'input'
      //   }
      // })
    } 
  }) 
} 
